package me.firstapp.service.weixin.system.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import me.firstapp.module.weixin.system.Operator;
import me.firstapp.repository.weixin.system.OperatorRepository;
import me.firstapp.service.weixin.system.OperatorService;

@Service
public class OperatorServiceImpl implements OperatorService {

	@Autowired
	private OperatorRepository operatorRepository;

	@Override
	public Operator findOperatorByName(String name) {
		return operatorRepository.findOperatorByName(name);
	}

	@Override
	public Operator findOperatorByEmail(String email) {
		return operatorRepository.findOperatorByEmail(email);
	}

}
